#include "NodeEditorWnd.h"

#include <QVBoxLayout>

NodeEditorWnd::NodeEditorWnd(QWidget *parent)
    : QWidget(parent)
{
    initUI();
}

void NodeEditorWnd::initUI()
{
    setGeometry(200, 200, 800, 600);

    m_view = new QGraphicsView(this);
    m_grScene = new QDMGraphics;
    m_view->setScene(m_grScene);

    auto layout = new QVBoxLayout(this);
    layout->setContentsMargins(0, 0, 0, 0);
    layout->addWidget(m_view);

    setWindowTitle("Node Editor");
    m_view->show();
}
